package com.swak.boot.config.consistency.tcc;

import org.apache.dubbo.config.spring.context.properties.DubboConfigBinder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.swak.consistency.tcc.resolve.DubboTccContextResolver;

@Configuration
@ConditionalOnClass({ DubboConfigBinder.class })
public class DubboResolverAutoConfiguration {

	@Bean
	public DubboTccContextResolver dubboTccContextResolver() {
		return new DubboTccContextResolver();
	}
}
